﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public class ClassicTrack : AbstractTrack
    {

        private ClassicTrackType _type;

        public ClassicTrack()
        { }

        public ClassicTrack(string name, int length, ClassicTrackType type)
            : base(name, length)
        {
            _type = type;
        }

        public ClassicTrackType Type
        {
            get { return _type; }
            set { _type = value; }
        }

        public override string ToString()
        {
            return base.ToString() + ", тип: " + _type;
        }
       
    }
}
    

